package service;

import pojo.User;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017-12-10.
 */
public interface UserService {

    List<User> getAllUser() throws SQLException;

    List<User> getCurrUser(int pageNow, int page_size) throws SQLException;

    int deleteUser(int id) throws SQLException;

    User selectUser(int id) throws SQLException;

    int updateUserInfo(User user) throws SQLException;

    int creatUserInfo(User user) throws SQLException;

    String checkName(String username) throws SQLException;
}
